package am.fp.events
{                                    
  import flash.events.Event;
  
  public class ZoomEvent extends Event
  {  
    public static const CHANGE: String = "changeZoom";
    public static const ZOOM_TO_FIT: String = "zoomToFit";
    public static const ZOOM_TO_PAGE: String = "zoomToPage";
    public static const ZOOM_PLUS: String = "zoomPlus";
    public static const ZOOM_MINUS: String = "zoomMinus";
    public static const ZOOM_UPDATED: String = "zoomUpdated";
    public static const FULLSCREEN_ON: String = "fsOn";
    public static const FULLSCREEN_OFF: String = "fsOff";
    public static const FULLSCREEN_ESC: String = "fsEsc";
    
    public static const FIT_PAGE: int = 0;
    public static const FIT_WIDTH: int = 1;
    public static const MIN: int = 20;
    public static const MAX: int = 400;
    
    private var m_value: int;
    public function get value(): int
    {
      return m_value;
    }
    
    public function ZoomEvent(type: String, value: int = MIN)
    {
      m_value = value;
      super(type, false, false);
    }
  }
}
